﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GetQuote.Web.Admin
{
    public partial class Products : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ProductDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            var listProducts = new[] { 
                new {ProductId = 1,Name="Slatburst",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="45.5"},
                new {ProductId = 2,Name="King stock",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="131.1"},
                new {ProductId = 1,Name="2 ½\" Routless Basswood ShutterBlinds",Manufacturer="Hunter Douglas",Category="Horizontal Blinds",DisplayWH="36\" x 60\"",Price="100.5"},
                new {ProductId = 1,Name="CrownWood (Formerly known as Trends)",Manufacturer="Comfortex Window Fashions",Category="Horizontal Blinds",DisplayWH="36\" x 60\"",Price="25.5"},
                new {ProductId = 1,Name="Woven Wood - Roman Fold Shade - Series 100",Manufacturer="Hunter Douglas",Category="Shades",DisplayWH="36\" x 60\"",Price="62.15"},
                new {ProductId = 1,Name="Roller Shades - Phifer Style: 3000 (14%)",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\" x 60\"",Price="55.5"},
                new {ProductId = 1,Name="Lexwood - Advantage",Manufacturer="Hunter Douglas",Category="Shutters",DisplayWH="36\" x 60\"",Price="55"},
                new {ProductId = 1,Name="Polycore Espress - Polycode",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\" x 60\"",Price="75.23"},
                new {ProductId = 1,Name="Faux Arch",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="35.5"},
                new {ProductId = 1,Name="Operable Slaburst",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="45.5"},
                new {ProductId = 1,Name="Sunburst",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="45.5"},
                new {ProductId = 1,Name="King Stock",Manufacturer="Hunter Douglas",Category="Arches",DisplayWH="36\"",Price="45.5"}
            };
            e.Result = listProducts;
        }

        protected void ManufacturerDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            var listManufacturers = new[] { 
                new {Id = 1,Name="Hunter Douglas",Description="Hunter Douglas is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Images/Manufacturers/logo_hunterdouglas.png"},
                new {Id = 1,Name="Vista Products",Description="Vista Products is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Images/Manufacturers/logo_vista.png"},
                new {Id = 1,Name="Comfortex Window Fashions",Description="Comfortex Window Fashions is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Images/Manufacturers/logo_comfortex.png"},
                new {Id = 1,Name="Graber Blinds",Description="Graber Blinds is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Images/Manufacturers/logo_graber.png"},
                new {Id = 1,Name="Horizons Window Fashions",Description="Horizons Window Fashions is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Images/Manufacturers/logo_horizons.png"},
                new {Id = 1,Name="Elegant Blinds Inc.",Description="Elegant Blinds Inc. is the world market leader in window coverings and a major manufacturer of architectural products",ImageUrl="../Styles/Images/no-image.png"}
                
            };
            e.Result = listManufacturers;
        }

        protected void CategoryDataSource_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            var listCategories = new[] { 
                new {Id = 1,Name="Arches",Description="",ImageUrl="../Images/Categories/Arches.jpg"},
                new {Id = 1,Name="Horizontal Blinds",Description="",ImageUrl="../Images/Categories/Horizontal.jpg"},
                new {Id = 1,Name="Shades",Description="",ImageUrl="../Images/Categories/Shades.jpg"},
                new {Id = 1,Name="Vertical Blinds",Description="",ImageUrl="../Images/Categories/Vertical.jpg"},
                new {Id = 1,Name="Shutters",Description="",ImageUrl="../Images/Categories/Shutter.jpg"},

            };
            e.Result = listCategories;
        }
    }
}